<template>
  <div class="side">
    <p>我是侧边栏</p>
    <button @click="chuandi">兄弟传值</button>
    <!-- is属性：使标签的嵌套看来更加合理 -->
    <ul>
      <li is="liCom"></li>
    </ul>
  </div>
</template>

<script>
import liCom from "./liComponent";
export default {
  data() {
    return {
      urlList: [
        { name: "goodsCart", path: "goodsCart" },
        { name: "com1", path: "com1" },
      ],
    };
  },
  components: {
    liCom
  },
  methods: {
    chuandi() {
      this.$bus.$emit("send", "我要租房子！！！");
    },
  },
};
</script>

<style>
</style>